Visit the SAP Forum

Languages : English | Dutch | French | Portugese | Italian



INTERVIEW EBOOK
Get 30,000 Interview Questions & Answers in an eBook.

Interview Success Kit - Get Success in Job Interviews



Send your Resume to 6000 Companies
START YOUR WEBSITE
India's Best Web Hosting Company

HR report from Cummulate results table


Home » HRM » HR report


-----Original Message-----
Subject: HR report from Cummulate results table

Very new to HR-ABAP - need report desperately - I can see the totals I need when I use the following path but don't know how to get at them for the report. We are using 4.0 w/4.6 GUI frontend.
Path is: Human Resources->Payroll->key in 10->key in 10->Tools->Payroll Results->Display--> Dbl click on a week-->select CRT-->dbl click on the name Cummulated Results Table. All the totals I need for the report are there. 
Report column headers are YTD totals for:
reg/hrs...O/T hrs...Prm/Hours...Total YTD/Hrs...Reg/Cost...O/T 
Cost...Prm/Cost...Standby/Cost...Misc/Cost...Total YTD Cost
The total hrs & YTD total costs I can sum from the fields shown in this table. I just can't figure out how to extract them from there or how they got there. 
Can somebody please help - time is running out for me - I'm already at my deadline. Everytime I try something- it's a dead end. 




-----Reply Message-----
Subject: RE: HR report from Cummulate results table

A program has to be written to extract the CRT data based on the particular employee and payroll period you are getting.

Try this.

TABLES: PERNR,
        PCL2.

*----------------------------------------------------------------------*
*   INCLUDE ZHR_PCL2_CU_DATA - Payroll results.                        *
*----------------------------------------------------------------------*
* Data declarations for the IMPORT of database PCL2 for cluster RU.    *
*----------------------------------------------------------------------*

DATA: CD_NEXT_SEQ    TYPE I,               "Next available seq number
      CD_LAST_PAY    TYPE D.               "Last payroll run date

DATA: BEGIN OF OCD_VERSION.
        INCLUDE STRUCTURE PC201.  "Technical Version
*DATA:   molga  LIKE t001p-molga.    "country identifier
DATA: END OF OCD_VERSION.

DATA: BEGIN OF RGDIR OCCURS 100.
         INCLUDE STRUCTURE PC261.  "(For Export and Import of Payroll Res
DATA: END OF RGDIR.

* Key for database PCL2 cluster RU
DATA BEGIN OF RX_KEY.
       INCLUDE STRUCTURE PC200.  "Payroll Results Key
DATA: END OF RX_KEY.
* country dependent
DATA: BEGIN OF  RU-VERSION.
        INCLUDE STRUCTURE PC201.  "Technical Version
DATA: END OF  RU-VERSION.

DATA: BEGIN OF ORU_VERSION.
        INCLUDE STRUCTURE PC201.  "Technical Version
DATA: END OF ORU_VERSION.

* Cumulated-result table
DATA:  BEGIN OF CRT OCCURS 30.
         INCLUDE STRUCTURE PC22Y.  "Cumulated result table (USA)
DATA:  END   OF CRT.

GET PERNR.

  IMPORT CD_VERSION TO OCD_VERSION
                       CD_LAST_PAY
                       CD_NEXT_SEQ
                       RGDIR
         FROM DATABASE PCL2(CU) ID PERNR-PERNR.
  CHECK SY-SUBRC EQ 0.
* This is where you select the particular period you are searching for.  The
* selection will change based on what dates you are looking for.
  LOOP AT RGDIR WHERE FPPER EQ P_PERIOD
                AND   INPER EQ P_PERIOD
                AND ( RUNDT GT Z_RUNDT
                OR  ( RUNDT EQ Z_RUNDT
                AND   RUNTM GT Z_RUNTI ) )
                AND   SRTZA =  'A'
                AND   PAYTY =  ' '
                AND   VOID  NE 'V'.

    CHECK SY-SUBRC = 0.

    MOVE PERNR-PERNR TO RX_KEY-PERNR.
    MOVE RGDIR-SEQNR TO RX_KEY-SEQNO.

   IMPORT RU-VERSION TO ORU-VERSION
          CRT
     FROM DATABASE PCL2(RU) ID RX_KEY.
     CHECK SY_SUBRC = 0.

   LOOP AT CRT.
     Process crt data.
   ENDLOOP.

  ENDLOOP. 

-----End of Reply Message-----

A D V E R T I S E M E N T

A D V E R T I S E M E N T

S A P - R E S O U R C E S


Get Free SAP Resources:

Are you looking for:
  • SAP Jobs
  • Free SAP eBooks
  • SAP Softwares
  • SAP Tutorials
  • ERP Implementation Examples
Enter Email Address:
(Enter your email address above and we will instantly send you the download link to you, when you confirm your email.)
Search SAP Resources:
discussionDiscussion Center
Discuss
Discuss

Query

Feedback
Yahoo Groups
Y! Group
Sirfdosti Groups
Sirfdosti
Contact Us
Contact
Sign in

User Name:
Password:
Forget password? | Register


INTERVIEW EBOOK

Get 30,000 Interview Questions & Answers in an eBook.

Interview Success Kit - Get Success in Job Interviews


Send your Resume to 6000 Companies

SAP Resources

  • SAP Articles
  • SAP Books
  • SAP Certifications
  • SAP Companies
  • SAP Study Materials
  • SAP Events
  • SAP Faqs
  • SAP Jobs
  • SAP Job Consultants
  • SAP Links
  • SAP News
  • SAP Sample Papers
  • SAP Interview Questions
  • SAP Training Institutes
  •  
    SAP Tutorial

  • Introduction
  • SAP History
  • SAP Facts
  • SAP Tables
  • SAP Function
  • SAP Report
  • Reasons To Use SAP
  • SAP Landscape
  • SAP Transaction Code
  • SAP Lotus Notes Integration
  • Business Connector and XML
  • Enterprise Release 4.7

  • SAP Training Institutes

  • SAP Training Institutes
  • Job Consultants Address
  • SAP Companies Address

  • Business Process Cycle

  • Analyze
  • Design
  • Implement
  • Operate
  • Optimize
  • Skills And Education

  • Logistics Module

  • Sales and Distribution
  • Quality Management
  • Materail Management
  • Plant Maintenance
  • Financial Modules (FI/CO)
  • Project system
  • Production Planning
  • Service Management

  • SAP NetWeaver

  • Introduction
  • Object Model
  • Interoperability
  • Creating Web Apps
  • Java Connector
  • Advantages & Conclusion
  • Life Cycle Management
  • Composite Application Framework

  • SAP Tools

  • SQL Trace Tool
  • SAP CRM
  • SAP SRM
  • SAP SCM
  • SAP ERP
  • SAP BW

  • SAP Modules

  • SAP FI Module
  • SAP CO Module

  • SAP Technical

  • SAP ITS Architecture
  • Financial Management
  • Manufacturing Planning and Execution
  • Customer Order Management
  • Lackbox Processing
  • SD and Financial Accounting Integration
  • SAP - HR (Human Resource)

  • SAP Miscellanous

  • Web Application Server(WAS)
  • Data Archiving
  • Mobile Engine
  • SAP Script
  • SAP Transactions
  • SAP Business Warehouse(BW)

  • SAP Reference

  • SAP Facts
  • SAP Tables
  • SAP Function
  • SAP Report
  • SAP Landscape

  • SAP Others

  • SAP Treasury
  • SAP Finance
  • SAP WAS
  • SAP Data Archiving
  • SAP ALE
  • SAP EDI
  • SAP Exchange
  • SAP X-APPS
  • SAP Applications Components
  • SAP Software
  • Dunning
  • SAP IDES
  • SAP Payroll Basics
  • SAP BASIS and Security Authorization
  • SAP Backup
  • SAP Router

  • ABAP Tutorials

  • Introduction
  • ABAP Transaction
  • ABAP Function
  • ABAP File Processing
  • ABAP Objects
  • ABAP Syntax
  • ABAP Queries
  • SAPMail Using ABAP
  • ABAP Programming Hints

  • SAP Projects & Codes

  • Finding the user-exits
  • Purchase Order Display
  • Batch Input
  • Dynamic Open SQL
  • Creating Extract Dataset
  • Reading database tables
  • Load table from a UNIX file
  • Create subscreen

  • SAP Resources

  • SAP Books
  • SAP Links

  • Interview Question



  • Common Interview Que.
  • ABAP Interview Que.
  • ERP Interview Que.
  • HR Interview Que.
  • MM Interview Que.
  • PP Interview Que.
  • ALE Interview Que.
  • EDI Interview Que.
  • Basis Interview Questions
  • SAP-SD Interview Questions
  • FI&CO Interview Questions
  • BW Interview Questions
  • CRM Interview Questions
  • Interview Questions

  • Careers at SAP

  • Careers in SAP (SAP Jobs)
  • Advertise
  •